#pragma once

#include "Point.h"

class CPolygon
{
public:
	enum {MaxPointCount = 60};
	CPolygon();
	~CPolygon();
	void RotateTransform(int angle);
	void TranslateTransform(int dx, int dy);
	void ScaleTransform(int sx, int sy);
	bool AddPoint(Point2D& point);
	bool AddPoint(int x, int y);
	bool Contain(Point2D& pt);
	void Clear();
	int VertexCount();
	Point2D mpPointList[MaxPointCount];
	int mnPointCount;
};
